package com.shop.shoporder.service;


import com.shop.shoporder.entity.order.Area;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AreaService {

    int deleteByPrimaryKey(int id) throws Exception;

    int insert(Area record) throws Exception;

    int insertSelective(Area record) throws Exception;

    Area selectByPrimaryKey(int id) throws Exception;

    int updateByPrimaryKeySelective(Area record) throws Exception;

    int updateByPrimaryKey(Area record) throws Exception;

    List<Area> selectAddressByParentId(int id) throws Exception;

    List<Area> selectAreaList(@Param("parentId") int parentId, @Param("level") int level);

}
